package MemcacheTest;

public class ReportTime {
	
	private String url = "";
	private long labtime = 0;
	private long pagetime = 0;
	private long grouptime = 0;
	private long labparsertime= 0;
	private long pageparsertime = 0;
	private long cdata = 0;
	private long memcache= 0;
	private long cmemcache= 0;
	private long java = 0;
	private long php = 0;
	private long transform = 0;
	private long html = 0;
	private long total = 0;
	private long blocksize = 0;
	
	public String toString(){
		StringBuffer sb = new StringBuffer(500);
		sb.append(url);
		sb.append(",");
		sb.append(labtime);
		sb.append(",");
		sb.append(pagetime);
		sb.append(",");
		sb.append(grouptime);
		sb.append(",");
		sb.append(labparsertime);
		sb.append(",");
		sb.append(pageparsertime);
		sb.append(",");
		sb.append(cdata);
		sb.append(",");
		sb.append(memcache);
		sb.append(",");
		sb.append(cmemcache);
		sb.append(",");
		sb.append(java);
		sb.append(",");
		sb.append(php);
		sb.append(",");
		sb.append(transform);
		sb.append(",");
		sb.append(html);
		sb.append(",");
		sb.append(total);
		sb.append(",");
		sb.append(blocksize);
		return sb.toString();
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public long getLabtime() {
		return labtime;
	}

	public void setLabtime(long labtime) {
		this.labtime = (this.labtime+labtime)/2;
	}

	public long getPagetime() {
		return pagetime;
	}

	public void setPagetime(long pagetime) {
		this.pagetime = (this.pagetime+pagetime)/2;
	}

	public long getGrouptime() {
		return grouptime;
	}

	public void setGrouptime(long grouptime) {
		this.grouptime = grouptime;
	}

	public long getLabparsertime() {
		return labparsertime;
	}

	public void setLabparsertime(long labparsertime) {
		this.labparsertime = (this.labparsertime+labparsertime)/2;
	}

	public long getPageparsertime() {
		return pageparsertime;
	}

	public void setPageparsertime(long pageparsertime) {
		this.pageparsertime = (this.pageparsertime+pageparsertime)/2;
	}

	public long getCdata() {
		return cdata;
	}

	public void setCdata(long cdata) {
		this.cdata = cdata;
	}

	public long getMemcache() {
		return memcache;
	}

	public void setMemcache(long memcache) {
		this.memcache = memcache;
	}

	public long getJava() {
		return java;
	}

	public void setJava(long java) {
		this.java = java;
	}

	public long getPhp() {
		return php;
	}

	public void setPhp(long php) {
		this.php = (this.php+php)/2;
	}

	public long getTransform() {
		return transform;
	}

	public void setTransform(long transform) {
		this.transform = transform;
	}

	public long getHtml() {
		return html;
	}

	public void setHtml(long html) {
		this.html = html;
	}

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}

	public long getBlocksize() {
		return blocksize;
	}

	public void setBlocksize(long blocksize) {
		this.blocksize = blocksize;
	}

	public long getCmemcache() {
		return cmemcache;
	}

	public void setCmemcache(long cmemcache) {
		this.cmemcache = cmemcache;
	}
	
	
}
